package com.chehongwei;

import com.chehongwei.service.Eat;
import com.chehongwei.service.EatCookie;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationContext;

@SpringBootApplication
public class SpringAopApplication {

    public static void main(
        String[] args) {
        ApplicationContext context =
            SpringApplication.run(SpringAopApplication.class, args);

        Eat eat = context.getBean(EatCookie.class);

//        Proxy.newProxyInstance()

        eat.eat("李白");

    }

}
